
from qqbot import QQBotSlot as qqbotslot, RunBot
from qqbot import _bot as bot
import pyautogui
from 子函数 import 关游戏
import cv2
import numpy as np
from matplotlib import pyplot as plt
import random,time

from PIL import ImageGrab
import pyautogui
import cv2
import numpy as np
import time
from 子函数.yinru import chahao ,shoudong,doujijieshu,meijuanle,yinlangniaomeikai,fanghui,qr,guanyouxi
ztj=0
@qqbotslot
def onQQMessage(bot, contact, member, content):
    if contact.qq=="331319341":
        if content == '1':
            bot.SendTo(contact, '好的老板，我这就去打怪')
            ztj=1
        elif content == '2':
            bot.SendTo(contact, '好的老板，我这就去突破')
            ztj = 2
        elif content == '3':
            bot.SendTo(contact, '好的我关闭')
            ztj = 3

            pyautogui.press('esc')
            time.sleep(2)
            x, y = pyautogui.center(pyautogui.locateOnScreen('../images/guanyouxi.png'))  # 获得中心点
            pyautogui.click(x, y)
            # 关游戏.关游戏()
if __name__ == '__main__':
    bot.Login(['-q', '752927073'])
    bot.Run()